PayWithAmazon\Client D

Total Complexity 146
Dependencies 4
Dependents 1
Total lines 1,566
Lines of code 799
Logical lines of code 437
Comment lines 409
Methods 57
Properties 13

Methods 57

Method Rating Maintainability Complexity Lines of code
charge()
A
43 16 44
invokePost()
A
45 9 40
makeChargeCalls()
A
51 9 28
setParametersAndPost()
A
52 9 25
setDefaultValues()
S
58 7 16
setProviderCreditReversalDetails()
S
51 6 25
setProviderCreditDetails()
S
51 6 25
getErrorMessageForJsonError()
S
57 5 19
__construct()
S
58 5 16
profileEndpointUrl()
S
59 5 14
setProxy()
S
63 5 11
createServiceUrl()
S
57 4 15
getUserInfo()
S
54 3 21
checkIfFileExists()
S
58 3 16
checkConfigKeys()
S
61 3 12
sign()
S
63 3 10
signParameters()
S
60 2 13
authorizeOnBillingAgreement()
S
52 1 25
createOrderReferenceForId()
S
53 1 22
authorize()
S
55 1 20
setOrderReferenceDetails()
S
55 1 19
capture()
S
56 1 18
refund()
S
56 1 18
setBillingAgreementDetails()
S
57 1 17
reverseProviderCredit()
S
58 1 16
trimArray()
S
69 2 7
setSandbox()
S
68 2 7
setClientId()
S
68 2 7
pauseOnRetry()
S
65 2 8
__get()
S
67 2 7
getParametersAsString()
S
67 2 7
closeAuthorization()
S
60 1 13
cancelOrderReference()
S
60 1 13
calculateSignatureAndParametersToString()
S
60 1 13
getBillingAgreementDetails()
S
60 1 13
closeOrderReference()
S
60 1 13
closeBillingAgreement()
S
60 1 13
getProviderCreditReversalDetails()
S
61 1 12
getProviderCreditDetails()
S
61 1 12
getRefundDetails()
S
61 1 12
confirmOrderReference()
S
61 1 12
validateBillingAgreement()
S
61 1 12
confirmBillingAgreement()
S
61 1 12
getOrderReferenceDetails()
S
61 1 12
getAuthorizationDetails()
S
61 1 12
getCaptureDetails()
S
61 1 12
getServiceStatus()
S
63 1 11
quoteApplicationName()
S
69 1 6
constructUserAgentHeader()
S
63 1 10
checkIfBool()
S
75 1 4
setMwsServiceUrl()
S
81 1 3
getFormattedTimestamp()
S
79 1 3
calculateSignatureAndPost()
S
71 1 6
urlEncode()
S
78 1 3
calculateStringToSignV2()
S
65 1 10
getParameters()
S
80 1 3
quoteApplicationVersion()
S
69 1 6